<form name="frmlist" id="frmlist" action="<?php echo $this->site['base_url']?>admin_page/search" method="post">
<table class="title" cellspacing="0" cellpadding="0">
  <tr>
    <td class="title_label"><?php echo Kohana::lang('page_lang.tt_page') ?></td>
	<td class="title_button">
	<button type="button" class="button new" onclick="javascript:location.href='<?php echo $this->site['base_url']?>admin_page/create'"/>
    <span><?php echo Kohana::lang('page_lang.btn_new_page') ?></span>
    </button>
    </td>
  </tr>
</table>
<table class="list_top" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left"><?php echo Kohana::lang('admin_lang.lbl_search') ?>: 
	<input name="txt_keyword" type="text" id="txt_keyword" value="<?php if(isset($keyword)) echo $keyword ?>"/>
    &nbsp;<button type="button" class="button search"/>
    <span><?php echo Kohana::lang('admin_lang.lbl_search') ?></span>
    </button>
    </td>
  </tr>
</table>
<table class="list" cellspacing="1" cellpadding="5">
	<tr class="list_header">
		<td width="10"><input type="checkbox" name="checkbox" value="checkbox" onclick='checkedAll(this.checked);'></td>
		<td><?php echo Kohana::lang('page_lang.lbl_title') ?>
        <!--<a href="<?php echo $this->site['base_url']?>admin_page/search/order/asc"><img src="{$site.theme_url}pics/icon_asc.png"/></a>
   		<a href="<?php echo $this->site['base_url']?>admin_page/search/order/desc"><img src="{$site.theme_url}pics/icon_desc.png"/></a>-->
        </td>
        <td width="50" align="center"><?php echo Kohana::lang('admin_lang.lbl_order') ?></td>
		<td width="80" align="center"><?php echo Kohana::lang('admin_lang.lbl_status') ?></td>
		<td width="80" align="center"><?php echo Kohana::lang('admin_lang.lbl_action') ?></td>
	</tr>
	<?php foreach($mlist as $id => $list){ ?>
	<tr class="row<?php if($id%2 == 0) echo 2 ?>">
    <td><input name="chk_id[]" type="checkbox" id="chk_id[]" value="<?php echo $list->page_id ?>"></td>
    <td style="text-align:left;"><a href="<?php echo $this->site['base_url']?>admin_page/edit/<?php echo $list->page_id ?>"><?php echo $list->page_title ?></a></td>
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_page/edit/<?php echo $list->page_id ?>"><?php echo $list->page_order ?></a></td>
    <td align="center">
    <?php if($list->page_active == 1){ ?>
	<a href="<?php echo $this->site['base_url']?>admin_page/setstatus/<?php echo $list->page_id ?>/0" >
	<img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_active.png" title="<?php echo Kohana::lang('admin_lang.lbl_active') ?>" />
    </a>
	<?php } else { ?>
	<a href="<?php echo $this->site['base_url']?>admin_page/setstatus/<?php echo $list->page_id ?>/1" >
	<img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_inactive.png" title="<?php echo Kohana::lang('admin_lang.lbl_inactive') ?>" />
    </a>
	<?php } ?>
    </td>
    <td align="center">
    <a href="<?php echo $this->site['base_url']?>admin_page/edit/<?php echo $list->page_id ?>">
    <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_edit.png" title="<?php echo Kohana::lang('admin_lang.btn_edit') ?>" />
    </a>
    <a href="<?php echo $this->site['base_url']?>admin_page/delete/<?php echo $list->page_id ?>" onclick="return confirm('<?php echo Kohana::lang('errormsg_lang.msg_confirm_del'); ?>')" >	
    <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_delete.png" title="<?php echo Kohana::lang('admin_lang.btn_delete') ?>" />
    </a>
    </td>
  	</tr>
  	<?php } ?>
</table>

<table class="list_bottom" cellspacing="0" cellpadding="5">
  <tr>
    <td>
	<select name="sel_action" id="sel_action">
		<option value="blocked"><?php echo Kohana::lang('admin_lang.lbl_block_selected') ?></option>
        <option value="active"><?php echo Kohana::lang('admin_lang.lbl_active_selected') ?></option>		
		<option value="delete"><?php echo Kohana::lang('admin_lang.lbl_delete_selected') ?></option>
	</select>
    &nbsp;
	<button type="button" name="btn_update" id="btn_update" class="button save" onclick="sm_frm(frmlist,'<?php echo $this->site['base_url']?>admin_page/saveall','<?php echo Kohana::lang('errormsg_lang.msg_confirm_del'); ?>');"/>
    <span><?php echo Kohana::lang('admin_lang.btn_update') ?></span>
    </button>
    </td>
  </tr>
</table>
</form>
<div class='pagination'><?php echo $this->pagination ?></div>